<%@ taglib uri="struts-html" prefix="html" %>
<!-- Add a new Menu by creating a new DIV. Just copy one of the current ones below -->
<table class="menu" cellpadding=0 id="menuTable">
	<tr>
		<td>
			<div class="menuBar">
				<a class="menuButton" onclick="loadPage('/ejc/struts/login/home.jsp');" 
					onmouseover="buttonMouseover(event,'');">Home</a>
			</div>
		</td><td>|</td>
		<td>
			<div class="menuBar" >
				<a class="menuButton" onclick="return buttonClick(event, 'regMenu');" 
					onmouseover="buttonMouseover(event,'regMenu');">Registration</a>
			</div>
		</td>
		<c:choose>
			<c:when test="${sessionScope.ejcSession.executive.admin == 'true'}">
				<td>|</td>
				<td>
					<div class="menuBar" >
						<a class="menuButton" onclick="return buttonClick(event, 'adminMenu');"
							onmouseover="buttonMouseover(event, 'adminMenu');">Administration</a>
					</div>
				</td>
			</c:when>
		</c:choose>
	<tr>
</table>
				

<!-- The following DIVs are the menu items for each Menu. Simply set the id as the Menu that you want to add it to. e.g. regMenu -->

<!-- The Registration menu items -->
<div id="regMenu" class="menu" onmouseover="menuMouseover(event)">
	
	<html:link page="/struts/register/registrationAction.do?methodToCall=preCreate" styleClass="menuItem"><img src="../../img/user_add.png" border=0>
	Register Guest</html:link> 

	<html:link page="/struts/search/searchRegistrantsAction.do?methodToCall=preSearch" styleClass="menuItem"><img src="../../img/magnifier.png" border=0>
	Search Guests</html:link> 

	<html:link page="/struts/register/specialPaymentsAction.do?methodToCall=preSpecialPayment" styleClass="menuItem"><img src="../../img/money.png" border=0>
	Solas Circus Payment</html:link> 
</div>

<c:choose>
	<c:when test="${sessionScope.ejcSession.executive.admin == 'true'}">
		<!-- The Administration menu items -->
		<div id="adminMenu" class="menu" onmouseover="menuMouseover(event)">
			<html:link page="/struts/admin/createExecutiveAction.do?methodToCall=preCreateExec" styleClass="menuItem"><img src="../../img/user_red.png" border=0>
			Add Executive</html:link> 
			<html:link page="/struts/admin/searchExecutiveAction.do?methodToCall=preSearch" styleClass="menuItem"><img src="../../img/magnifier.png" border=0>Search Executives</html:link> 
			<html:link page="/struts/statistics/statistics.jsp" styleClass="menuItem"><img src="../../img/chart_curve.png" border=0>Statistics</html:link> 
			<html:link page="/struts/dashboard/dashboardAction.do?methodToCall=loadDash" styleClass="menuItem"><img src="../../img/application_view_list.png" border=0>
			Dashboard</html:link> 
		</div>
	</c:when>
</c:choose>

